<?php

namespace App\Admin\Actions\Grid;

use Dcat\Admin\Grid\RowAction;
use App\Admin\Forms\ImportCouponExcel as ImportCouponExcelForm;
use Dcat\Admin\Widgets\Modal;


class ImportCouponExcel extends RowAction
{
    /**
     * @return string
     */
	protected $title = '导入卡密';

	public function render()
    {
        $form = ImportCouponExcelForm::make()->payload([
            'id'    =>  $this->getKey()
        ]);

        return Modal::make()
            ->lg()
            ->title($this->title)
            ->body($form)
            ->button($this->title);
    }
}
